package com.huatai.bpmn;

import com.huatai.bpmn.commom.util.SecurityUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.security.core.userdetails.UserDetailsService;

/**
 * @program: ht-system
 * @description: bpmn服务
 * @author: songxiude
 * @create: 2023-07-07 11:34
 **/
@SpringBootApplication(scanBasePackages = {"com.huatai"},exclude = {
	org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class,
	org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration.class
})
@MapperScan("com.huatai.bpmn.mapper")
@EnableFeignClients(basePackages = "com.huatai")
@EnableScheduling
public class BpmnApplication {
	public static void main(String[] args) {
		SpringApplication.run(BpmnApplication.class,args);
	}


	@Bean
	public UserDetailsService myUserDetailsService() {
		return SecurityUtil.findInstance();
	}
}
